﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GS.Cricket.Web
{
    public partial class Admin : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button_SignIn_Click(object sender, EventArgs e)
        {
            var user = TextBox_user.Text.Trim();
            var pass = TextBox_pass.Text.Trim();

            if (user == "admin" && pass == "gscricket")
            {
                Session["validuser"] = true;
                Response.Redirect("PointsTable.aspx");
            }
            else
            {
                Label1.Text = "Invalid login";
            }
        }
    }
}